<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">


    <ui:composition template="./WEB-INF/Templates/templateProjeto.xhtml">
        <ui:define name="titulo">consultaEmpreendimento</ui:define>
        <ui:define name="javascript">
            function disable(){
                document.getElementById("form:dtInicio").disabled=true;
                document.getElementById("form:dtFim").disabled=true;
            }
        </ui:define>
        <ui:define name="tituloH1">Consulta LOGs</ui:define>
        <ui:define name="pagLinda">
            <h1>Informe as duas datas entre as quais está o LOG que você procura.</h1>
            <h:messages layout="list" style="color: darkred"/>
            <h:form id="form">
                <h:panelGrid columns="1">
                    <h:panelGroup>
                        <!---->                      <!--Há 22 espaços invisiveis (alt+255) entre estes comentarios-->
                        <b>De</b>
                        <h:inputText id="dtInicio" value="#{managedLogs.dtInicio}" label="Data de inicio">
                            <f:validateRequired/>
                             <f:validator validatorId="validatorData"/>
                             <f:attribute name="numCampo" value="inicial"/>
                        </h:inputText>
                        
                        <b>ate</b>
                        <h:inputText id="dtFim" value="#{managedLogs.dtFim}"  label="Data final">
                            <f:validateRequired/>
                             <f:validator validatorId="validatorData"/>
                            <f:attribute name="numCampo" value="final"/>
                        </h:inputText>
                    </h:panelGroup>
                </h:panelGrid>
                <h:commandButton value="Pesquisar" action="#{managedLogs.procurar}"/>
                <h:commandButton value="Pesquisar por todos os LOGs" action="#{managedLogs.procurarTodos()}" onclick="disable()"/>
            </h:form>
        </ui:define>

    </ui:composition>

</html>
